import numpy as np
def makeMatrix(row_num,column_num,start=0,step=1):
    matrix=[]
    row=[]
    for i in range(row_num):
        for j in range(column_num):
            row.append(start)
            start+=step
        matrix.append(row)
        row=[]
    return matrix
M=makeMatrix(3,4) # 起始位置和步长取默认值
print(M)

y = np.mat("1,2,3;4,5,6;7,8,9")
print(y)
print(y.T, '\n')
print(y.H, '\n')
# print(y.I, '\n')

# import numpy as np
# x,y = map(int,input().split())
# a = np.ones((x+1,y+1))
# for i in range(1,x+1):
#     for j in range(1,y+1):
#         a[i][j] = a[i-1][j] + a[i][j-1]
# print(a)